//
//  AccountAboutPage.swift
//  Casecord
//
//  Created by baozi on 2024/1/8.
//

import SwiftUI

struct AccountAboutPage: View {
    @EnvironmentObject var route: Router
    var body: some View {
        VStack(spacing: 15) {
            // 清除所有记录
            // 删除账户
            Color.clear.frame(height: 40)
            CustomMenuItem(title: "Clear All Data", image: "minus.diamond") {
                
            }
            CustomMenuItem(title: "Delete Account", image: "folder.badge.minus") {
                route.to(name: .deleteAccount)
            }
            Spacer()
        }
    }
}

#Preview {
    AccountAboutPage()
}
